<template>
  <div>
    <div class="img1"></div>
    <!-- 导航1 -->
    <el-header class="header">
      <el-row>
        <el-menu mode="horizontal" background-color="#545c64" text-color="#fff" class="header_navbar">
          <el-col :span="8">
            <!-- 导航条logo -->
            <el-menu-item index="1" class="logo_box">
              <img src="../../assets/librarian/image/lib_logo.png" class="logo" />
            </el-menu-item>
          </el-col>
          <el-col :span="8">
            <!-- 导航条搜索框 -->
            <el-menu-item index="2">
              <el-input placeholder="Search here" clearable>
                <el-button slot="append" icon="el-icon-search"></el-button>
              </el-input>
            </el-menu-item>
          </el-col>
          <!-- 导航条退出按钮 -->
          <el-col :span="2">
            <el-menu-item index="3" class="logout_box">
              <el-button type="info" @click="backToIndex">Back</el-button>
            </el-menu-item>
          </el-col>
        </el-menu>
      </el-row>
    </el-header>
<el-container class="home-container">
    <!-- 头部区域 -->
  <!-- 页面主体区域 -->
  <el-container>
    <!-- 侧边栏 -->
    <el-aside width="200px">
      <!-- 侧边栏菜单区域 -->
      <el-menu
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b" :router="true">
      <!-- 一级菜单 -->
      <el-submenu>
        <!-- 一级菜单模板 -->
        <template slot="title">
          <!-- 图标 -->
          <i class="el-icon-location"></i>
          <!-- 文本 -->
          <span>Edit/Delete</span>
        </template>
        <!-- 二级菜单 -->
         <el-menu-item index="edit">Edit</el-menu-item>
         <el-menu-item index="delete">Delete</el-menu-item>
        </el-submenu>
    </el-menu>
    </el-aside>
    <!-- 右侧内容 -->
    <el-main>
      <router-view></router-view>
    </el-main>
  </el-container>
</el-container>
  </div>
</template>

<script>
  export default{
    data(){
      return{
        data1: []
      }
    },
    created(){

    },
    methods:{
      // 返回首页
      backToIndex(){
        this.$router.push('/index')
      },
    }
  }
</script>

<style>
.img1{
  background-size: 100% 100%;
  background: url("../../../assets/admin/image/dudu1.png");
  height: 25%;
  position: absolute;
  bottom: 0;
  width: 100%;
}
</style>
